package lab02.test35;

public class Salesman extends Employee {
    double baseSalary;
    int couter;
    double wages;

    public Salesman(){}

    public Salesman(String name, double baseSalary, int coutter, double wages) {
        super(name);
        this.baseSalary = baseSalary;
        this.couter = coutter;
        this.wages = wages;
    }

    @Override
    public double computeSalary() {
        return baseSalary+couter*wages;
    }
}
